package com.woniuxy02;


public class Student {

    private Integer sid;
    private String sname;
    public int age;

    public Student() {
    }

    public Student(Integer sid, String sname) {
        this.sid = sid;
        this.sname = sname;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", age=" + age +
                '}';
    }

    public void study(){
        System.out.println("study");
    }
    public void study(String coure){
        System.out.println("study:"+coure);
    }
    public void study(String coure,int year){
        System.out.println("study:"+coure+",year:"+year);
    }

    public String test(String str){
        return str.toUpperCase();
    }

    private void myprivate(){
        System.out.println("myprivate");
    }

}
